<?php 
if($this->session->userdata('error-ms')){
	echo '<div class="alert alert-error">
			<button type="button" class="close" data-dismiss="alert">&times;</button>
			<strong>Error:</strong> Could not send the feedback, please try again!
		</div>';
	$this->session->unset_userdata('error-ms');
}else if($this->session->userdata('success-ms')){
	echo '<div class="alert alert-success">
			<button type="button" class="close" data-dismiss="alert">&times;</button>
			<strong>Successfully sent</strong> , thank you!
		</div>';
	$this->session->unset_userdata('success-ms');
}
?>

<?php echo form_open(site_url('content/feedback')); ?>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td width="85">Full Name:</td>
    <td width="245"><?php echo form_input('fullName', set_value('fullName')); ?><span class="red">*</span></td>
    <td><?php echo form_error('fullName'); ?></td>
  </tr>
  <tr>
    <td>Email:</td>
    <td><?php echo form_input('email', set_value('email')); ?><span class="red">*</span></td>
    <td><?php echo form_error('email'); ?></td>
  </tr>
  <tr>
    <td>Phone:</td>
    <td><?php echo form_input('phone', set_value('phone')); ?><span class="red">*</span></td>
    <td><?php echo form_error('phone'); ?></td>
  </tr>
  <tr>
    <td>Subject:</td>
    <td><?php echo form_input('subject', set_value('subject')); ?><span class="red">*</span></td>
    <td><?php echo form_error('subject'); ?></td>
  </tr>
  <tr>
    <td>Message:</td>
    <td colspan="2"><?php echo form_textarea('message', set_value('message'), 'style="width:500px; height:150px;"'); ?><span class="red">*</span>
    <?php echo form_error('message'); ?></td>
  </tr>
  <tr>
    <td>&nbsp;</td>
    <td colspan="2" align="right"><input type="submit" name="send" class="btn" value="Send" style="margin-top: 10px; margin-right:130px;" /></td>
  </tr>
</table>

<?php echo form_close(); ?>